package lc.q300_350;

public class Q319 {

    public int bulbSwitch(int n) {
        // 完全平方数
        return (int) Math.sqrt(n + 0.5);
    }

    public static void main(String[] args) {
        Q319 q319 = new Q319();
        System.out.println(q319.bulbSwitch(10));
    }
}
